<template>
  <el-dialog v-model="dialog.visible" :title="dialog.title" width="60%" :before-close="close">
    <avue-crud
        v-if="tableOption&&dialog.visible"
        v-bind="bindVal"
        v-on="onEvent"
        v-model:page="page"
        v-model="startForm">
    </avue-crud>
    <div slot="footer text-right" style="text-align: right;">
      <el-button type="primary"   @click="confirmConfig">确定</el-button>
    </div>
  </el-dialog>
</template>

<script>

import {createDynamicMixin} from "../../../../mixins/startCrud.js";
import {deepClone} from "utils/util";

const option = {
  name: "start/development/sysDataTableConfig"
}
export default {
  name: "importTable",
  mixins: [createDynamicMixin(option)],
  components: {},
  data() {
    return {
      dialog: {
        visible: false,
        title: ''
      },
    };
  },
  created() {

  },
  methods: {
    show() {
      this.dialog.visible = true;
      this.dialog.title = "请选择数据表"
    },
    confirmConfig() {
      this.$emit("selectConfirm", deepClone(this.selectList), this.close)
    },
    close() {
      this.dialog.visible = false;
      this.dialog.title = '';
    },
  }
}


</script>

<style scoped lang="scss">

</style>
